const { defineConfig } = require('@vue/cli-service')

module.exports = defineConfig({
  transpileDependencies: true,
  publicPath: process.env.NODE_ENV === 'production' ? '/lkwy/' : '/',
  
  devServer: {
    port: 8080,
    allowedHosts: [      
      'luckywill.net',
      'www.luckywill.net',
      'm.luckywill.net',
      'localhost'
    ],
    proxy: {
      '/api': {
        target: 'http://localhost:3000',
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  },
  lintOnSave: false
}) 